package org.net.cms.service.leave;

import org.net.cms.controller.admin.leave.vo.StudentLeaveReqVO;
import org.net.cms.controller.app.leave.vo.AppStudentLeaveReqVO;
import org.net.cms.controller.app.leave.vo.AppStudentLeaveRespVO;
import org.net.cms.dao.StudentLeaveDto;

import java.util.List;

public interface StudentLeaveService {

    Boolean insert(AppStudentLeaveReqVO studentLeaveReqVO);

    Boolean delete(int id);

    Boolean updateLeave(AppStudentLeaveRespVO studentLeaveRespVO);

    AppStudentLeaveRespVO findById(int id);

    List<StudentLeaveDto> findAll();

    // 通过状态获取列表
    List<StudentLeaveDto> findListByType(int type);

    // 通过申请id，修改审核状态
    Boolean updateStatus(int id, int status);

}
